<!DOCTYPE html>
<html>

<head>
    {include file="Public/header"}
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/layout/css/zTreeStyle.css" type="text/css">
    <link href="__STATIC__/layout/css/common.css" rel="stylesheet">
    <style>
        .row {
            border: 1px solid #ccc;
            margin: 0 auto;
        }

        .addNewSystem,
        .lendAndNewSystem,
        .plAmendSystemName,
        .mapShowAllSystem,
        .rubish,
        .query,
        .lendExcel,
        .lendAllExcel,
        .emptyIf {
            font-size: 14px
        }

        .btn:nth-of-type(1) {
            margin-left: 15px;
        }

        .border_S {
            border-bottom: 1px solid #ccc
        }

        .b_B {
            border-bottom: 1px solid #ccc
        }

        input[type="text"] {
            height: 22px;
            width: 150px;
            display: inline-block;
        }

        /*  .quedingbtn button{text-align: center;margin-right: 5px;margin-left: 0}*/

        .agencyM_table {
            background: #fff;
        }

        .agencyM_table tr th {
            text-align: center;
            vertical-align: middle;
            font-size: 14px;
            background: #c8d0d8;
        }

        .agencyM_table tr td {
            text-align: center;
            font-size: 14px;
            height: 50px;
        }

        .agencyM_table tr td a:hover {
            text-decoration: underline;
        }

        .agencyM_table tr td span {
            font-size: 12px;
            margin: 0 5px 0 5px;
        }

        .agencyM_table tr td .add_import {
            font-size: 12px;
            color: red;
        }

        .agencyM_table tbody tr td .textareaInfo {
            width: 100%;
            max-height: 50px;
            /*自动适应父布局宽度*/
            overflow: auto;
            word-break: break-all;
        }

        .agencyM_table tbody tr td ul li a {
            display: inline-block;
            margin: 0 8px;
            font-weight: bold;
        }

        .agencyM_table tbody .this_tableInfo_alert {
            display: none;
        }

        .H_title {
            cursor: pointer;
        }

        .da_table tr td .textW {
            max-width: 140px;
            display: inline-block;
        }

        .colorRed {
            color: red;
        }

        .da_table tr td .select2 {
            width: 100px;
            height: 26px;
        }

        .mlR {
            margin: 0 5px;
        }

        .textR {
            text-align: right;
        }
    </style>
</head>

<body class="white-bg" style="color:#333;padding:0px" class="x_sorll">
        <div class="page-heade">
       <h2 class="title_color text-center">系统管理回收站</h2>
    </div>
    <div id="chooseTitle">
        <div class="Agencycontent">
            <div class="col-md-12" style="height:50px;">
                <button class="btn btn-info rubish" style="position: absolute;right: 20px;top:8px" id="fanhui">返回</button>
            </div>
            <form id="form1" action="" class="form-group" method="get">
                <table class="table da_table white-bg" style="margin-bottom:0;border-bottom: 0;font-size: 14px">
                    <tr>
                        <td class="textR"><label for="sn">系统编号:</label></td>
                        <td><input type="text" name="sn" value="{$sn}" id="sn" class="form-control textW"></td>
                        <td class="textR"><label for="title">系统名称:</label></td>
                        <td><input type="text" name="title" id="title" value="{$title}" class="form-control textW"></td>
                        <td class="textR"><label for="wdXianShiLeiXing">系统有多个经销商显示方法:</label></td>
                        <td><select id="wdXianShiLeiXing" class="form-control" name="wdXianShiLeiXing">
                            <option value="0">系统只显示一条</option>
                            <option value="1" selected="selected">根据所属经销商（供应商）显示多条</option>
                        </select></td>
                    </tr>
                    <tr>
                        <td class="textR"><label for="zoning">经销商所属分区:</label></td>
                        <td><input type="text" id="zoning" name="zoning" value="{$zoning}" class="form-control textW"></td>
                        <td class="textR"><label for="provice">经销商所属省份:</label></td>
                        <td><input type="text" id="provice" name="provice" value="{$provice}" class="form-control textW"></td>
                        <td class="textR"><label for="city">经销商所属城市:</label></td>
                        <td><input type="text" id="city" name="city" value="{$city}" class="form-control textW"></td>
                    </tr>
                    <tr>
                        <td class="textR"><label for="zoning_head">分区负责人:</label></td>
                        <td><input type="text" name="zoning_head" value="{$zoning_head}" id="zoning_head" class="form-control textW"></td>
                        <td class="textR"><label for="provice_head">省份负责人:</label></td>
                        <td><input type="text" name="provice_head" value="{$provice_head}" id="provice_head" class="form-control textW"></td>
                        <td class="textR"><label for="stuff">业务人员:</label></td>
                        <td><input type="text" name="stuff" id="stuff" value="{$stuff}" class="form-control textW"></td>
                    </tr>
                </table>

            <div class="col-md-12 white-bg text-center" style="padding: 10px 0">
                <button class="btn btn-info  query">查询</button>
                <button class="btn btn-info  emptyIf" id="reset">清空查询条件</button>
                <button class="btn btn-info  lendExcel">导出导入版Excel</button>
                <button class="btn btn-info  lendAllExcel">导出完整版Excel</button>
            </div>
            </form>

            <!-- 表格 -->
            
                <table class="table table-bordered table-hover agencyM_table">
                    <tr>
                        <th>No.</th>
                        <th>系统编号</th>
                        <th>系统名称</th>
                        <th>业务人员(系统)</th>
                        <th>所属经销商编号</th>
                        <th>所属经销商名称</th>
                        <th>分区(经销商)</th>
                        <th>省份(经销商)</th>
                        <th>城市(经销商)</th>
                        <th>分区负责人(经销商)</th>
                        <th>省份负责人(经销商)</th>
                        <th>城市负责人(经销商)</th>
                        <th>业务人员(经销商)</th>
                        <th>类型</th>
                        <th>二级渠道</th>
                        <th>一级渠道</th>
                        <th>详细地址</th>
                        <th>维护</th>
                    </tr>
                    {volist name="data" id="row"}
                    <tr class="angency_tableInfo">
                        <td class="NoId">{$row.id}</td>
                        <td>{$row.sn}</td>
                        <td><a href="javascript:;">{$row.title}</a></td>
                        <td>
                            <div class="textareaInfo">
                                {volist name="row.stuff" id="row2"}
                                <span>{$row2}</span>
                                {/volist}
                            </div>
                        </td>
                        <td>{$row.jxs}</td>
                        <td><a href="javascript:;">{$row.jxs_title}</a></td>
                        <td>{$row.zoning}</td>
                        <td>{$row.provice_title}</td>
                        <td>{$row.city_title}</td>
                        <td>{$row.zoning_head}</td>
                        <td>{$row.provice_head}</td>
                        <td>{$row.city_head}</td>
                        <td>
                            <div class="textareaInfo">
                            {volist name="row.jxs_stuff" id="row2"}
                            <span>{$row2}</span>
                            {/volist}
                        </div>
                        </td>
                        <td>{$row.cusType}</td>
                        <td>{$row.twoCType}</td>
                        <td>{$row.oneCType}</td>
                        <td>{$row.detailAddress}</td>
                        <td>
                            <a href="{:url('qiyong',array('id'=>$row.id))}" class="enableIt">启用</a>
                        </td>
                    </tr>
                    {/volist}
                </table>
                <h5 class="text-center">
                   {$page}
                </h5>

          
        </div>
    </div>

    <!-- 表格 -->


    <!-- 全局js -->
    {include file="Public/footer"}
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>

    <!-- 自定义js -->
    <!-- <script src="js/hplus.js?v=4.1.0"></script> -->
    <!-- <script type="text/javascript" src="js/contabs.js"></script> -->
    <!-- Peity -->
    <script src="__STATIC__/layout/js/plugins/peity/jquery.peity.min.js"></script>

    <!-- jqGrid -->
    <script src="__STATIC__/layout/js/plugins/jqgrid/i18n/grid.locale-cn.js?0820"></script>
    <script src="__STATIC__/layout/js/plugins/jqgrid/jquery.jqGrid.min.js?0820"></script>

    <!-- 自定义js -->
    <script src="__STATIC__/layout/js/content.js?v=1.0.0"></script>
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    <!-- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script> -->
    <!--统计代码，可删除-->
    <script>
        $(document).ready(function () {
            $('#reset').on('click',function () {
                $("#form1 input").each(function(){
                    $(this).val('');
                });
                $("#form1 select").each(function(){
                    $(this).val('');
                });
                $('#form1').submit()
                return false
            })
            $('.enableIt').on('click',function () {
                var link = $(this).attr('href')
                $.getJSON(link,function (data) {
                    if(data.success){
                        if(data.success)
                            swal({
                                title: "",
                                text: data.msg,
                                type: "success"
                            },function () {
                                location.reload()
                            })
                        else
                            swal({
                                title: "",
                                text: data.msg,
                                type: "success"
                            })
                    }
                })
                return false
            })

        })
    </script>
<script>
    $('#isdel').on('click',function () {
        var index = layer.open({
            type: 2,
            title: '系统-回收站',
//                        area: ['500px', '400px'],
            fixed: false, //不固定
            maxmin: true,
            content: '{:url("isdel")}'
        });
        layer.full(index)
        return false
    })
    $('#fanhui').on('click',function () {
//        parent.layer.close(parent.layer.getFrameIndex(window.name))
        parent.location.reload();
        return false
    })
</script>
</body>

</html>